package model.vo {
    import mx.collections.ArrayCollection;

    [Bindable]
    public class GameVo {
        public var balance:Number;
        public var scoreRules:Array;
        public var level:int;
        public var maxLevel:int;
        public var score:int;
        public var eggs:int;
        public var state:int;
        public var win:int;
        public var arrive:Boolean;
        public var missionRulesList:Array;
        public var missionRules:Array;

        public function GameVo():void {
            this.state = Constants.GAME_STATE.PREPARING;
            this.level = 1;
            this.maxLevel = 5;
            this.balance = 200;
            this.scoreRules = [100, 200, 300, 400, 500];
            this.missionRulesList = [[994, 5, 1],
                                     [993, 5, 2],
                                     [991, 5, 4],
                                     [987, 5, 8],
                                     [985, 5, 10]];
            reset();
        }

        public function reset():void {
            this.score = 0;
            this.eggs = 0;
            this.win = 0;
            this.arrive = false;
            this.missionRules = this.missionRulesList[this.level - 1];
        }
    }
}

